if vsp != 0{
 if (other.y>y) && (vsp > 0){
  alarm[0]=room_speed/((room_speed/2)+(vsp*2));
  vsp=0;
  y=other.y-sprite_height;
  //sound_play(snd_hit);
  sp=0;
  can_jump = true;
 }
 if (other.y<y) && vsp<0{
  vsp=0;
  //sound_play(snd_hit);
  y=other.y+(other.sprite_height);
 }
}
